import java.util.Scanner;

public class Test {
    //1题
    String str = new String("good");
    char[ ] ch = { 'a' , 'b' , 'c' };
    public static void main1(String args[]){
        Test ex = new Test();
        ex.change(ex.str,ex.ch);
        System.out.print(ex.str + " and ");
        System.out.print(ex.ch);
    }
    public void change(String str,char ch[ ]){
        str = "test ok";
        ch[0] = 'g';
    }


    //2题
    public static boolean isAdmin(String userId){
        return userId.toLowerCase()=="admin";
    }
    public static void main2(String[] args){
        System.out.println(isAdmin("Admin"));
    }
}


class Solution {
    public int firstUniqChar(String s) {
        char[] count = new char[26];

        int i=0;
        count[0] = 0;
        while(i<26)
        {
            count[i] += 1;
            i++;
        }

        for(i=0;i<s.length();i++){
            char ch = s.charAt(i);
            count[ch-97]+=1;
        }

        for(i=0;i<s.length();i++){
            char ch = s.charAt(i);
            if(count[ch-97]==1)
            {
                return i;
            }
        }
        return -1;
    }
}